/* ===== АДАПТИВ ДЛЯ ПОЛУЭКРАНА И ПЛАНШЕТОВ ===== */

 
@media (max-width: 1200px) {
   
    
    /* Хедер */
    header {
        height: 5rem;
        padding: 0 1rem;
    }
    
    header .logo img {
        width: 7rem;
        padding-left: 2rem;
    }
    
    nav ul {
        gap: 2.5rem;
    }
    
    .header-button {
        right: 2rem;
    }
    
    .header-button .button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
   


    

    
    
    


    footer .logo img {
        width: 7rem;
        padding-left: 50px;
    }
    
    footer nav ul {
        gap: 2rem;
       margin-left: 70px;
    }

   footer .social-icons a img {
    width: 1.8rem; 
    height: 1.8rem;
}
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ 360px ===== */
@media (max-width: 430px) {
    
    /* Базовые настройки */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Принудительно убираем все горизонтальные скроллы */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Хедер */
    header {
        height: 60px;
        padding: 0 15px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #A8E551;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    header .logo {
        position: static;
        order: 2;
        flex-grow: 1;
        text-align: center;
    }
    
    header .logo img {
        width: 60px;
        padding-left: 0;
        padding-right: 10px;
        margin: 0 auto;
    }
    
    /* Скрываем десктопное меню на мобильных */
    nav:not(.mobile-nav),
    .header-button {
        display: none;
    }
    
    /* Кнопка меню */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: #F07800;
        font-size: 24px;
        cursor: pointer;
        order: 1;
        z-index: 1002;
        transition: transform 0.3s ease;
        padding: 5px;
    }

    .mobile-menu-btn:hover {
        transform: scale(1.1);
    }

    /* Затемнение фона */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(31, 7, 53, 0.7);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Мобильное меню - справа */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 200px;
        height: 100%;
        background-color: #A8E551;
        z-index: 1002;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    .mobile-menu.active {
        display: block;
        right: 0;
    }

    /* Крестик закрытия справа */
    .menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: #f9f7f2;
        font-size: 20px;
        cursor: pointer;
        z-index: 1003;
        transition: all 0.3s ease;
        padding: 5px;
    }

    .menu-close:hover {
        color: #F07800;
        transform: scale(1.1);
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 70px 0 0 0;
        display: flex;
        flex-direction: column;
        padding-left: 0;
    }

    .mobile-nav ul li {
        width: 100%;
        text-align: left;
        margin-bottom: 0;
    }

    .mobile-nav ul li a {
        display: block;
        color: #f9f7f2;
        text-decoration: none;
        font-size: 14px;
        padding: 0px 70px 0px 0px;
        transition: all 0.3s ease;
        font-weight: 500;
        border-bottom: none;
        line-height: 0.3;
        text-align: left;
        margin-left: 0;
    }

    .mobile-nav ul li a:hover {
        color: #F07800;
        text-decoration: none;
    }

    .mobile-nav ul li a.active {
        color: #F07800;
        font-weight: 700;
        text-decoration: none;
    }

    /* Иконка инстаграма */
    .mobile-instagram {
        display: flex;
        justify-content: left;
        margin-top: -20px;
        margin-left: 30px;
    }

    .mobile-instagram a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: all 0.3s ease;
       
    }

    .mobile-instagram a:hover {
        background: #F07800;
        transform: scale(1.1);
    }

    .mobile-instagram img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

    /* Кнопка стать партнером - более округлая */
    .mobile-partner {
        display: block;
        background: transparent;
        color: #f9f7f2 !important;
        border: 2px solid #f9f7f2;
        border-radius: 20px;
        margin: 50px 10px;
        margin-left: 30px;
        font-weight: 500;
        text-align: center;
        padding: 10px 10px !important;
        transition: all 0.3s ease;
        text-transform: none;
        width: calc(100% - 70px); /* Сужаем ширину кнопки */
        font-size: 12px;
        text-decoration: none;
    }

    .mobile-partner:hover {
        background: #f9f7f2;
        color: #1F0735 !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(249, 247, 242, 0.3);
    }

    /* Основной контент страницы "О нас" */
    .about-container {
        padding: 30px 15px 0px 15px !important;
        margin-top: 50px;
        width: 100% !important;
        box-sizing: border-box;
    }

    .about-block {
        background: white;
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-left: 4px solid #A8E551;
    }

    .block-title {
        font-size: 1.1rem !important;
        margin-bottom: 15px;
        text-align: center;
        font-weight: 700;
    }

    .company-name {
        font-size: 0.9rem !important;
        font-weight: 600;
        margin-bottom: 10px;
        text-align: center;
    }

    .about-text {
        font-size: 0.85rem !important;
        line-height: 1.5;
        margin-bottom: 12px;
        text-align: justify;
    }

    .bold-text {
        font-weight: 600;
    }

    /* CTA блок */
        /* CTA блок - вертикальное расположение на мобильных */
    .cta-block {
        padding: 10px 15px;
        border-radius: 12px;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 10px;
        display: flex !important;
        flex-direction: column !important; /* Вертикальное расположение */
        align-items: center !important;
        gap: 15px !important; /* Отступ между текстом и кнопкой */
    }

    .cta-text {
        font-size: 1rem !important;
        margin-bottom: 0 !important; /* Убираем margin, используем gap */
        font-weight: 600;
        line-height: 1.5;
        padding: 0 5px;
        order: 1 !important; /* Текст первым */
    }

    .cta-button {
        display: inline-block;
        background: #A8E551;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        transition: all 0.3s ease;
        margin-top: 0 !important; /* Убираем margin, используем gap */
        order: 2 !important; /* Кнопка второй */
    }

    
        /* Скрываем футер в мобильной версии */
    footer {
        display: none !important;
    }

    
    
}
